Einhugur macOS Bridge plugin.

EinhugurCoreBridge.NSUserDefaults Class

An interface to the user’s defaults database, where you store key-value pairs persistently across launches of your app.

EinhugurCoreBridge.NSObject
   NSUserDefaults

class EinhugurCoreBridge.NSUserDefaults

Constructors

NSUserDefaultsCreates a user defaults object initialized with the defaults for the app and current user.

Properties

ClassName (Inherited) (desktop - console) Returns the name of the Cocoa class under the hood as String.
Handle (Inherited) Returns Integer handle to the native NSObject structure.

Methods

ArrayForKeyReturns the array associated with the specified key.
BooleanForKeyGets or sets Boolean value for given key.
DictionaryForKeyReturns the dictionary associated with the specified key.
DoubleForKeyGets or sets Double value for given key.
IntegerForKeyGets or sets Integer value for given key.
ObjectForKeyGets or sets NSObject value for given key.
RegisterDefaultsAdds the contents of the specified dictionary to the registration domain.
Release (Inherited) Releases the NSObject.
RemoveObjectForKeyRemoves the value of the specified default key.
Retain (Inherited) Retains the NSObject
SingleForKeyGets or sets Single value for given key.
shared StandardUserDefaultsCreates instance of the NSUserDefaults class with the shared defaults object.
StringForKeyGets or sets String value for given key.
SynchronizeForce commits changes.

Constants

Version = 5.0 (Inherited)

Supported Platforms:

  • macOS Intel 64 bit
  • macOS Apple Silicon
  • iOS
  • Unsupported Platforms:

  • Windows 32 bit
  • Windows 64 bit
  • Windows ARM 64 bit
  • Linux 32 bit
  • Linux 64 bit
  • Linux ARM 32 bit
  • Linux ARM 64 bit